<?php
    if (!defined('EXPONENT')) exit('');
    if (exponent_users_isAdmin() ||  exponent_permissions_check(array("administrate","upload","delete"),exponent_core_makeLocation("profilemodule","_syscore","")))
    {
        if(isset($_REQUEST['ajax_action']))
        {
            if (isset($_REQUEST['client_id']) )
            { 
                $id=intval($_REQUEST['client_id']);   
                $content=$db->selectObject('profilemodule_profile','client_id='.$id);           }
            if(!$content)
                echo 'ok';
            else
                echo 'dup';//Duplicate Client id
        }
    }
?>
